home *** CD-ROM | disk | FTP | other *** search
/ RComp HTML Edit Studio for RISC OS / RComp HTML Edit Studio for RISC OS.iso / ZIPS / HTML.ZIP / HTMLEdit / !HTMLEdit / User / dtd / ie30tables < prev    next >
Encoding:
Text File  |  1997-07-15  |  7.5 KB  |  182 lines

  1. <!-- Note: I originally excerpted this from the document entitled
  2. "The HTML3 Table Model" by Dave Raggett, which I found at
  3. http://www.w3.org/hypertext/WWW/TR/WD-tables. This file 
  4. identified itself as W3C Working Draft, dated 12/22/95. There are
  5. slight modifications.
  6.  
  7. Added width attribute to th and td elements.
  8.  
  9. Version: 11/11/96
  10.  
  11. -->
  12.  
  13. <!-- Content model entities imported from parent DTD:
  14.  
  15.   %body.content; allows table cells to contain headers, paras,
  16.   lists, form elements and even arbitrarily nested tables.
  17.  
  18.   %text; is text characters, including character entities and
  19.   character emphasis elements, IMG and anchors
  20. -->
  21.  
  22. <!ENTITY % attrs
  23.        "id      ID       #IMPLIED  -- element identifier --
  24.         class   NAMES    #IMPLIED  -- for subclassing elements --
  25.         style   CDATA    #IMPLIED  -- rendering annotation --
  26.         lang    NAME     #IMPLIED  -- as per RFC 1766 --
  27.         -- dir   (ltr|rtl)  #IMPLIED --  -- I18N text direction --">
  28.  
  29. <!--
  30.  The BORDER attribute sets the thickness of the frame around the
  31.  table. The default units are screen pixels.
  32.  
  33.  The FRAME attribute specifies which parts of the frame around
  34.  the table should be rendered. The values are not the same as
  35.  CALS to avoid a name clash with the VALIGN attribute.
  36.  
  37.  The value "border" is included for backwards compatibility with
  38.  <TABLE BORDER> which yields frame=border and border=implied
  39.  For <TABLE BORDER=1> you get border=1 and frame=implied. In this
  40.  case, its appropriate to treat this as frame=border for backwards
  41.  compatibility with deployed browsers.
  42. -->
  43.  
  44. <!ENTITY % Frame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
  45.  
  46. <!--
  47.  The RULES attribute defines which rules to draw between cells:
  48.  
  49.  If RULES is absent then assume:
  50.      "none" if BORDER is absent or BORDER=0 otherwise "all"
  51. -->
  52.  
  53. <!ENTITY % Rules "(none | groups | rows | cols | all)">
  54.         
  55. <!-- horizontal placement of table relative to window -->
  56. <!ENTITY % Where "(left|center|right)">
  57. <!-- horizontal alignment attributes for cell contents -->
  58. <!ENTITY % cell.halign
  59.         "align  (left|center|right|justify|char) #IMPLIED
  60.          char    CDATA   #IMPLIED -- alignment char, e.g. char=':' --
  61.          charoff CDATA   #IMPLIED -- offset for alignment char --"
  62.         >
  63.  
  64. <!-- vertical alignment attributes for cell contents -->
  65. <!ENTITY % cell.valign
  66.         "valign  (top|middle|bottom|baseline)  #IMPLIED"
  67.         >
  68.  
  69. <!ELEMENT table - - (caption?, colgroup*, thead?, tfoot?, tbody+)>
  70. <!ELEMENT caption - - (%text;)+>
  71. <!ELEMENT thead - O (tr+)>
  72. <!ELEMENT tfoot - O (tr+)>
  73. <!ELEMENT tbody O O (tr+)>
  74. <!ELEMENT colgroup - O (col*)>
  75. <!ELEMENT col - O EMPTY>
  76. <!ELEMENT tr - O (th|td)+>
  77. <!ELEMENT (th|td) - O %body.content>
  78.  
  79. <!ATTLIST table                    -- table element --
  80.         %attrs;                    -- id, lang, style, dir and class --
  81.         align   %Where;  #IMPLIED  -- table position relative to window --
  82.         width   CDATA    #IMPLIED  -- table width relative to window --
  83.         cols    NUMBER   #IMPLIED  -- used for immediate display mode --
  84.         border  CDATA    #IMPLIED  -- controls frame width around table --
  85.         frame   %Frame;  #IMPLIED  -- which parts of table frame to include --
  86.         rules   %Rules;  #IMPLIED  -- rulings between rows and cols --
  87.         cellspacing CDATA #IMPLIED -- spacing between cells --
  88.         cellpadding CDATA #IMPLIED -- spacing within cells --
  89.         background    %URL    #IMPLIED    -- background picture --
  90.         bgcolor          CDATA    #IMPLIED  -- table background color --
  91.         bordercolor      CDATA    #IMPLIED  -- table border color --
  92.          bordercolorlight CDATA    #IMPLIED  -- 3D table border color --
  93.          bordercolordark  CDATA    #IMPLIED  -- 3D table border color --
  94.         >
  95.  
  96. <!-- ALIGN is used here for compatibility with deployed browsers -->
  97. <!ENTITY % Caption "(top|bottom)">
  98.  
  99. <!ATTLIST caption                  -- table caption --
  100.         %attrs;                    -- id, lang, style, dir and class --
  101.         align  %Caption; #IMPLIED  -- relative to table --
  102.         height    CDATA    #IMPLIED   -- added for IE3 --
  103.         width   CDATA   #IMPLIED   -- added for IE3 --
  104.         >
  105.  
  106. <!--
  107. COLGROUP groups a set of COL elements. It allows you to group
  108. several columns together.
  109. -->
  110.  
  111. <!ATTLIST colgroup
  112.         %attrs;                    -- id, lang, style, dir and class --
  113.         span    NUMBER   1         -- default number of columns in group --
  114.         width   CDATA    #IMPLIED  -- default width for enclosed COLs --
  115.         %cell.halign;              -- horizontal alignment in cells --
  116.         %cell.valign;              -- vertical alignment in cells --
  117.         >
  118.  
  119. <!--
  120.  COL elements define the alignment properties for cells in a given
  121.  column or spanned columns. The WIDTH attribute specifies the
  122.  width of the columns, e.g.
  123.  
  124.      width=64        width in screen pixels
  125.      width=0.5*      relative width of 0.5
  126. -->
  127.  
  128. <!ATTLIST col                      -- column groups and properties --
  129.         %attrs;                    -- id, lang, style, dir and class --
  130.         span    NUMBER   1         -- number of columns spanned by group --
  131.         width   CDATA    #IMPLIED  -- column width specification --
  132.         %cell.halign;              -- horizontal alignment in cells --
  133.         %cell.valign;              -- vertical alignment in cells --
  134.         >
  135.  
  136. <!--
  137.     Use THEAD to duplicate headers when breaking table
  138.     across page boundaries, or for static headers when
  139.     body sections are rendered in scrolling panel.
  140.  
  141.     Use TFOOT to duplicate footers when breaking table
  142.     across page boundaries, or for static footers when
  143.     body sections are rendered in scrolling panel.
  144.  
  145.     Use multiple TBODY sections when rules are needed
  146.     between groups of table rows.
  147. -->
  148. <!ATTLIST (thead|tbody|tfoot)      -- table section --
  149.         %attrs;                    -- id, lang, style, dir and class --
  150.         %cell.halign;              -- horizontal alignment in cells --
  151.         %cell.valign;              -- vertical alignment in cells --
  152.         >
  153.  
  154. <!ATTLIST tr                       -- table row --
  155.         %attrs;                    -- id, lang, style, dir and class --
  156.         %cell.halign;              -- horizontal alignment in cells --
  157.         %cell.valign;              -- vertical alignment in cells --
  158.         bgcolor          CDATA    #IMPLIED  -- table background color --
  159.         bordercolor      CDATA    #IMPLIED  -- table border color --
  160.          bordercolorlight CDATA    #IMPLIED  -- 3D table border color --
  161.          bordercolordark  CDATA    #IMPLIED  -- 3D table border color --
  162.         >
  163.  
  164. <!ATTLIST (th|td)                  -- header or data cell --
  165.         %attrs;                    -- id, lang, style, dir and class --
  166.         axis    CDATA    #IMPLIED  -- defaults to cell content --
  167.         axes    CDATA    #IMPLIED  -- list of axis names --
  168.         nowrap (nowrap)  #IMPLIED  -- suppress word wrap --
  169.         rowspan NUMBER   1         -- number of rows spanned by cell --
  170.         colspan NUMBER   1         -- number of cols spanned by cell --
  171.         %cell.halign;              -- horizontal alignment in cells --
  172.         %cell.valign;              -- vertical alignment in cells --
  173.         background    CDATA    #IMPLIED    -- background graphic --
  174.         bgcolor            CDATA    #IMPLIED  -- background color for cell --
  175.          bordercolor        CDATA    #IMPLIED  -- cell border color --
  176.          bordercolorlight    CDATA    #IMPLIED  -- 3D cell border color --
  177.          bordercolordark        CDATA    #IMPLIED  -- 3D cell border color --
  178.         height    CDATA    #IMPLIED
  179.         width   CDATA   #IMPLIED
  180.        >
  181.  
  182.